//懒加载的引入方式
const Home = () =>
    import ('@/pages/Home')
const Login = () =>
    import ('@/pages/Login')
const Register = () =>
    import ('@/pages/Register')
const Detail = () =>
    import ('@/pages/Detail')
const Cart = () =>
    import ('@/pages/Cart')
const Personal = () =>
    import ('@/pages/Personal')
const Category = () =>
    import ('@/pages/Category')
const Search = () =>
    import ('@/pages/Search')


export default [{
        name: 'home',
        path: '/home',
        component: Home,
        meta: { showFooter: true }
    },
    {
        name: 'Search',
        path: '/Search',
        component: Search,
        meta: { showFooter: false }
    },
    {
        name: 'login',
        path: '/login',
        component: Login,
        meta: { showFooter: false }
    },
    {
        name: 'register',
        path: '/register',
        component: Register,
        meta: { showFooter: false }
    }, {
        name: 'detail',
        path: '/detail/:id',
        component: Detail,
        meta: { showFooter: false }
    }, {
        name: 'cart',
        path: '/cart',
        component: Cart,
        meta: { showFooter: true }
    }, {
        name: 'personal',
        path: '/personal',
        component: Personal,
        meta: { showFooter: true }
    },
    {
        name: 'category',
        path: '/category',
        component: Category,
        meta: { showFooter: true }
    },
    {
        path: '/',
        redirect: '/home'
    }

]